
#include "AbsoluteLifeMovement.h"


void AbsoluteLifeMovement::serialize(PacketWriter pw)
{
	pw.write(getType());
	pw.writeShort(getPosition().x);
	pw.writeShort(getPosition().y);
	pw.writeShort(pixelsPerSecond.x);
	pw.writeShort(pixelsPerSecond.y);
	pw.writeShort(unk);
	pw.writeInt(0);
	pw.write(getNewstate());
	pw.writeShort(getDuration());
}

void AbsoluteLifeMovement::setPixelsPerSecond(Position pos)
{
	this->pixelsPerSecond = pos;
}

Position AbsoluteLifeMovement::getPixelsPerSecond()
{
	return this->pixelsPerSecond;
}

void AbsoluteLifeMovement::setUnk(int unk)
{
	this->unk = unk;
}

int AbsoluteLifeMovement::getUnk()
{
	return this->unk;
}